import { notFound } from "next/navigation"; import secondselfShot from "@/assets/projects/secondself.webp"; import { BentoGrid, type BentoItem } from "@/components/bento/bento-grid"; import { ArtifactsCard } from "@/components/cards/artifacts"; import { EmojiCard } from "@/components/cards/emoji"; import { FinOpsCard } from "@/components/cards/finops"; import { GlobeCard } from "@/components/cards/globe"; import { HeroCard } from "@/components/cards/hero"; import { MiniCard } from "@/components/cards/mini-card"; import { PackBookCard } from "@/components/cards/packbook"; import { PhotoDeck } from "@/components/cards/photo-deck"; import { ProjectCard } from "@/components/cards/project"; import { SkyCard } from "@/components/cards/sky"; import { TechSphere } from "@/components/cards/tech-sphere"; import { WritingCard, type PostSummary } from "@/components/cards/writing"; import { projects } from "@/config/site"; import { getHomeData } from "@/lib/data"; import { isLocale } from "@/lib/i18n"; import { getMessages } from "@/messages"; // Static, refreshed hourly: the Firebase image URLs are baked in. export const revalidate = 3600; export default async function Page({ params, }: { params: Promise<{ lang: string }>; }) { const { lang } = await params; if (!isLocale(lang)) notFound(); const t = getMessages(lang); const home = await getHomeData(); // Articles are emptied for now: no Notion request and no post list. The // pipeline stays in lib/notion.ts for when they come back. const posts: PostSummary[] = []; // A project's name and link from the config, its words in this language. const project = (id: keyof typeof projects) => ({ ...projects[id], ...t.projects[id], }); // Order matters: cards pack first-fit in this order. Sizes are columns × rows // on phones (2 columns, below the hero's header row), wide phones (2), small // tablets (2), tablets (3), and desktops (4). // On tablets: // [hero ][sky ] // [hero ][globe] // [finops ] // [artifacts ] // [secondself][pack ] // [photos ][pack ] // [photos ][web ] // [chatbot ][web ] // [tech][mini][emoji] // [paper][writing ] // On desktop: // [hero ][finops ] // [hero ][artifacts ] // [sky][globe][secondself] // [pack][photos ][web] // [pack][photos ][web] // [chatbot ][tech][mini] // [emoji][paper][writing ] // Cards 1 / 2 / 4 are blank placeholders for now. Their components and the // original JSX stay right here; flip a flag to true to bring one back. const show = { finops: false, artifacts: false, secondself: false, writing: false, packbook: false, photos: true, chatbot: false, emoji: false, paper: false, }; const items: BentoItem[] = [ { id: "hero", tags: ["about"], label: t.cards.hero, size: [ [2, 1], [2, 2], [2, 2], [2, 2], [2, 2], ], still: true, // Below 768px a full-width header row as tall as its content (the first // three sizes go unused). header: true, content: ( ), }, { id: "finops", tags: ["work"], label: "AWS FinOps Agent", size: [ [2, 2], [2, 2], [2, 1], [3, 1], [2, 1], ], content: show.finops ? : null, }, { id: "artifacts", tags: ["work"], label: "Amazon Q artifacts", size: [ [2, 2], [2, 2], [2, 1], [3, 1], [2, 1], ], content: show.artifacts ? : null, }, { id: "sky", tags: ["about"], label: t.cards.sky, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "globe", tags: ["about"], label: t.cards.globe, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "secondself", tags: ["work"], label: projects.secondself.name, size: [ [2, 1], [2, 1], [2, 1], [2, 1], [2, 1], ], content: show.secondself ? ( ) : null, }, { id: "packbook", tags: ["work"], label: "PackBook", size: [ [2, 2], [2, 2], [1, 2], [1, 2], [1, 2], ], content: show.packbook ? : null, }, { id: "photos", tags: ["about"], label: t.cards.photos, size: [ [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], ], content: show.photos ? : null, }, { id: "webagent", tags: ["work"], label: projects.webagent.name, size: [ [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], ], content: ( ), }, { id: "chatbot", tags: ["work"], label: projects.chatbot.name, size: [ [2, 1], [2, 1], [2, 1], [2, 1], [2, 1], ], content: show.chatbot ? ( ) : null, }, { id: "tech", tags: ["about", "work"], label: t.cards.tech, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "mini", tags: ["about"], label: t.cards.mini, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: , }, { id: "emoji", tags: ["work"], label: t.cards.emoji, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: show.emoji ? : null, }, { id: "paper", tags: ["work"], label: projects.paper.name, size: [ [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], ], content: show.paper ? ( ) : null, }, { id: "writing", tags: ["about"], label: t.cards.writing, size: [ [2, 2], [2, 2], [2, 1], [2, 1], [2, 1], ], content: show.writing ? ( ) : null, }, ]; return ; }